<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <script>
        Vue.config.productionTip = false;

        // 定义一个数组
        const arr = [1,2,3,4,5];
        // 使用slice方法
        const res = arr.slice();
        console.log('arr',arr);
        console.log('res',res);
    </script>
</body>
</html>